package com.chinasofti.thread02;

public class MyThreadDemo  {
    public static void main(String[] args) {
        MyThread my1 = new MyThread();
        MyThread my2 = new MyThread();

        my1.setName("高铁");
        my2.setName("c919");
//        MyThread my1 = new MyThread("万达");
//        MyThread my2 = new MyThread("凯德");
        my1.start();
        my2.start();

        System.out.println(Thread.currentThread().getName());
    }
}